import request from '@/utils/request'

//查询游戏数据列表
export const queryPageApi = (name, categoryId, pageNum, pageSize) => request.get(`/admin/gameData/page?name=${name}&categoryId=${categoryId}&pageNum=${pageNum}&pageSize=${pageSize}`)
//添加游戏数据
export const addGameDataApi = (data) => request.post('/admin/gameData', data)
//根据ID查询游戏数据信息
export const queryInfoApi = (id) => request.get(`/admin/gameData/${id}`)
//修改游戏数据信息
export const updateGameDataApi = (data) => request.put('/admin/gameData', data)
//删除游戏数据
export const deleteGameDataApi = (ids) => request.delete(`/admin/gameData?ids=${ids}`)